<ui:composition template="Plantilla.xhtml"
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:ace="http://www.icefaces.org/icefaces/components"
                xmlns:ice="http://www.icesoft.com/icefaces/component">
    <ui:define name="content">
        <ice:form >               
            <ice:panelGroup id="messagePanel" layout="block">
                <ice:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </ice:panelGroup>
            <ice:panelGroup>
                
                <ice:panelGroup rendered="#{!administracion.aut}">
                    <div class="background"></div>
                <div id="indicador"></div>
                    <div class="tabla_log"><table width="100%" border="0">
                        <tr align="left">
                            <th valign="middle" scope="row">Email</th>
                            <td><ice:inputText value="#{administracion.usuario}" size="25" id="email" /></td>
                        </tr>
                        <tr>
                            <th align="left" valign="middle" scope="row">Contraseña</th>
                            <td><label for="contrasena"></label>
                            <ice:inputSecret value="#{administracion.password}" size="25" id="contrasena" /></td>
                        </tr>
                        </table> 
                           <br /> 
                        <div align="center">
                            <h:commandButton id="btn_ingreso" style="background: no-repeat; border: none" 
                                             image="images/interfaz_software_acreditacion_07.jpg"
                                             action="#{administracion.ingreso()}"/>
                            <h:commandButton style="background: no-repeat; border: none" 
                                             image="/images/btn_atras.png" alt="Atras" 
                                             action="main.xhtml" immediate="true"/>  
                        </div>
                    </div>                    
                </ice:panelGroup>
                <h:panelGroup rendered="#{administracion.aut}">
                    <h:panelGrid columns="3">
                        <div class="background"></div>
                        <h:graphicImage url="images/interfaz_software_acreditacion_05.jpg"/>                
                        <h:panelGroup>
                            <!-- <h:commandButton style="font-weight: bold; color: #3DC6FF; font-size: 15px; background-color: whitesmoke" 
                                            value="Asignar Cupos"/> <br /> -->
                            <h:commandButton style="font-weight: bold; color: #3DC6FF; font-size: 15px; background-color: whitesmoke" 
                                                action="#{rptPensionesMaternalController.prepareList()}" value="Administrar Recibos"/>
                        </h:panelGroup>
                    </h:panelGrid>
                <h:commandButton style="background: no-repeat; border: none"  
                                            image="images/icono_salir.png"
                                            action="#{administracion.logout()}"/>  
                    <div align="right" class="menu_usuario">                        
                             
                    </div>
                </h:panelGroup>    
            </ice:panelGroup>            
        </ice:form>
    </ui:define>
</ui:composition>